package ioc_bean.ser.impl;

import ioc_bean.ser.interf.UserSer;

import java.util.ArrayList;
import java.util.Map;


public class UserSerImpl implements UserSer
{
	private String[] array;
	private ArrayList<String> list;
	private Map<String, Integer> map;

	public void setArray(String[] array)
	{
		this.array = array;
	}

	public void setList(ArrayList<String> list)
	{
		this.list = list;
	}

	public void setMap(Map<String, Integer> map)
	{
		this.map = map;
	}

	@Override
	public void addUser()
	{
		System.out.println(array[1]);
		System.out.println(list.get(1));
		System.out.println(map.get("X"));
	}
}
